﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="HoiDap.aspx.cs" Inherits="HoiDap" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View3" runat="server">
            <table class="style7" style="height: 56px; width: 315px">
                <tr>
                    <td class="style8">
                        Tên Khách hàng:</td>
                    <td align="left">
                        <asp:TextBox ID="TextBox17" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style8">
                        Chủ đề:</td>
                    <td align="left">
                        <asp:TextBox ID="TextBox18" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style8">
                        &nbsp;</td>
                    <td align="left">
                        <asp:Button ID="Button6" runat="server" Text="Tìm" Width="88px" 
                            onclick="Button6_Click" CausesValidation="False" />
                        <asp:Label ID="Label1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style8" colspan="2">
                        <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" 
                            onpageindexchanging="GridView3_PageIndexChanging" 
                            onrowcancelingedit="GridView3_RowCancelingEdit" 
                            onrowediting="GridView3_RowEditing" 
                            onrowupdating="GridView3_RowUpdating">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="NguoiHoi" HeaderText="Người hỏi" ReadOnly="True" />
                                <asp:BoundField DataField="Email" HeaderText="Email" />
                                <asp:BoundField DataField="ChuDe" HeaderText="Chù Đề" />
                                <asp:BoundField DataField="Hoi" HeaderText="Hỏi" />
                                <asp:BoundField DataField="Dap" HeaderText="Đáp" />
                                <asp:BoundField DataField="NgayHoi" HeaderText="Ngày hỏi" 
                                    DataFormatString="{0:dd/MM/yyyy}" />
                                <asp:BoundField DataField="NgayDap" HeaderText="Ngày đáp" 
                                    DataFormatString="{0:dd/MM/yyyy}" />
                                <asp:BoundField DataField="NguoiDap" HeaderText="Người đáp" />
                                <asp:TemplateField HeaderText="Hiển thị">
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Hienthi") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                                            <asp:ListItem Value="True">Hiển thị</asp:ListItem>
                                            <asp:ListItem Value="False">Ẩn</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField CancelText="Hủy" EditText="Sửa" ShowEditButton="True" 
                                    UpdateText="Lưu" />
                            </Columns>
                        </asp:GridView>
                        <asp:Button ID="Button7" runat="server" Text="Xoa" onclick="Button7_Click" 
                            style="height: 26px" CausesValidation="False" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
</asp:Content>

